from django.contrib import admin
from django.urls import path, include
from .views import RegisterAPIView
from rest_framework_simplejwt.views import (
    TokenObtainPairView,
    TokenRefreshView,
)

app_name = 'user'

urlpatterns = [
    path("register/", RegisterAPIView.as_view(), name="register"),
    path("login/", TokenObtainPairView.as_view(), name="token_obtain_pair"),  # 登录， 返回token
    path("refresh/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
]
